<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        body {
            display: flex;
            padding-top: 100px;
            padding-left: 100px;
        }
        span {
            width: 200px;
            height: 100px;
            border: 1px solid red;
            color: pink;
        }
    </style>
</head>

<body>
    <script>
        const spec = [
            { size: '40cm*40cm', color: '黑色' },
            { size: '50cm*50cm', color: '黑色' },
            { size: '60cm*60cm', color: '黑色' }
        ]
        // document.querySelector('div').innerHTML = Object.values(spec).join('/')
        // let str = ''
        // for (let i = 0; i < spec.length; i++) {
        //     str += `
        //     <span>${Object.values(spec[i]).join('/')}</span>
        //     `
        // }
        let str = spec.map(el=> {
            return `<span>${Object.values(el)}</span>`
        })
        document.body.innerHTML = str.join('')
    </script>
</body>

</html>